cmake_minimum_required(VERSION 3.27)
project(DKS_AGX)

set(CMAKE_CXX_STANDARD 17)
# 添加源文件所在的目录
file(GLOB SOURCES "src/*.cpp")
file(GLOB LIB "lib/*.cpp")

include_directories(include)
include_directories(lib)
include_directories(lib/mavlink/include/mavlink/v2.0)

add_executable(udp_recv_test test/test_udp_recv.cpp ${SOURCES} ${LIB})
add_executable(DKS_AGX main.cpp ${SOURCES} ${LIB}
        src/threads.cpp
        src/decode.cpp
        include/decode.h)

find_package(Threads REQUIRED)
target_link_libraries(udp_recv_test Threads::Threads)





